package com.dora.basic.basic.lambda;

@FunctionalInterface
interface Greeting {
    void sayHello(String name);
}

public class LambdaTest {

    public static void main(String[] args) {
        Greeting greeting = name -> System.out.println("Hello, " + name);
        greeting.sayHello("Tom");


    }

}
